﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MagicBag.CRM.Model
{
    /// <summary>
    /// 部门
    /// </summary>
    public class Department
    {


        private int _id;

        /// <summary>
        /// 编号
        /// </summary>	
        public int ID
        {
            get { return _id; }
            set { _id = value; }
        }

        private string _cname;

        /// <summary>
        /// 中文名称
        /// </summary>	
        public string CName
        {
            get { return _cname; }
            set { _cname = value; }
        }

        private string _ename;

        /// <summary>
        /// 英文名称
        /// </summary>	
        public string EName
        {
            get { return _ename; }
            set { _ename = value; }
        }

        private int _parentid;

        /// <summary>
        /// 父ID
        /// </summary>	
        public int ParentID
        {
            get { return _parentid; }
            set { _parentid = value; }
        }

        private string _remark;

        /// <summary>
        /// 备注
        /// </summary>	
        public string Remark
        {
            get { return _remark; }
            set { _remark = value; }
        }

        private IList<Department>  childrens;

        /// <summary>
        /// 第一级子部门
        /// </summary>
        public IList<Department> Childrens
        {
            get { return childrens; }
            set { childrens = value; }
        }

    }
}